package com.baseLearn.learn.designPatterns.strategy;


/**
 * 环境角色，提供给客户端使用
 */
public class CalcuteUser {
    private ICalcute icalcute;

    public ICalcute getInstans(ICalcute icalcute) {
        this.icalcute = icalcute;
        return this.icalcute;
    }

    public int doCalcute(int a, int b) {
        return icalcute.calcute(a, b);
    }
}
